import { 
    LN_SET_TABLE_DATA, 
    LN_CHANGE_TABLE_LOADING,
    //  
    LN_CHANGE_SEARCH_PARAMS,
} from './actions';



const initState = {
    loading: false,
    data: {
        data:[],
        pagination: {},
    },
    visible: false,
    params: {
        time: [],
        count: '',
        type: ''
    }
}

const listNofity = (state = initState, action) => {
    switch (action.type) {
        case LN_SET_TABLE_DATA:
            return { ...state, data: action.data };
        case LN_CHANGE_TABLE_LOADING:
            return { ...state, loading: action.option };
        // 
        case LN_CHANGE_SEARCH_PARAMS:
            return { ...state, params: action.params };
        default:
            return state;
    }
}
export default listNofity;